package com.ukadas.eduko.negocio;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.ukadas.eduko.persistencia.ImagenDao;

@Service
@Transactional(propagation=Propagation.REQUIRED)
public class GestorImagenes  {

	@Autowired
	private ImagenDao imagenDao;
	
	public void setImagenDao(ImagenDao imagenDao) {
		this.imagenDao = imagenDao;
	}
	
	public  byte[] getImagen(int id, Object clase, String campoId)  {
		return imagenDao.getImagen(id, clase, campoId);
	}
	
}
